package org.tof.hotel.dto;

public class PersonDTO {

    private int     id;
    private String  firstName;
    private String  lastName;
    private String  phone;
    private String  email;
    private Integer points;

    public PersonDTO(String firstName, String lastName, String phone, String email, Integer points) {
        this.firstName = firstName;
        this.lastName = lastName;
        this.phone = phone;
        this.email = email;
        this.points = points;
    }

    public PersonDTO(String firstName, String lastName, String phone, String email) {
        this.firstName = firstName;
        this.lastName = lastName;
        this.phone = phone;
        this.email = email;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getFirstName() {
        return firstName;
    }

    public void setFirstName(String firstName) {
        this.firstName = firstName;
    }

    public String getLastName() {
        return lastName;
    }

    public void setLastName(String lastName) {
        this.lastName = lastName;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public Integer getPoints() {
        if (points == null) {
            return null;
        }
        return points;

    }

    public void setPoints(Integer points) {
        this.points = points;
    }
}
